From: Matthew Leeds Date: Thu, 29 Mar 2018 05:03:33 +0000 (-0700) Subject: lib/commit: Fix a memory leak of OtChecksum X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~24^2~71 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2be4631738aaaad27d7689a6e6118c78659b5579;p=ostree.git lib/commit: Fix a memory leak of OtChecksum Closes: #1521 Approved by: jlebon --- diff --git a/src/libostree/ostree-repo-commit.c b/src/libostree/ostree-repo-commit.c index 16081a95..12c4103d 100644 --- a/src/libostree/ostree-repo-commit.c +++ b/src/libostree/ostree-repo-commit.c @@ -1246,7 +1246,7 @@ write_metadata_object (OstreeRepo *self, } else { - OtChecksum checksum = { 0, }; + g_auto(OtChecksum) checksum = { 0, }; ot_checksum_init (&checksum); gsize len; const guint8*bufdata = g_bytes_get_data (buf, &len);